Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(CellButton): decrease space between icon and text #7658

Conversation

andrey-medvedev-vk
Copy link
Contributor

@andrey-medvedev-vk andrey-medvedev-vk commented Sep 24, 2024


  • e2e-тесты
  • Дизайн-ревью
  • Release notes

Описание

Расстояние между иконкой, помещённой в before и текстом в режиме centered больше чем раньше.

v5.5.0 v6.5.0
Screenshot 2024-09-24 at 19 02 15 Screenshot 2024-09-24 at 19 02 40

Изменения

Уменьшаем расстояние за счёт отрицательного марджина на размер паддинга по умолчанию, заданного в before. Используем css переменную.

Иначе сделать никак, потому что паддинг задаётся в SimpleCell__before и он сразу больше того значения, которое мы хотим задать в режиме centered. 12px против 8px.

Release notes

Исправления

  • CellButton: исправлен слишком большой отступ между иконкой в before и текстом в режиме centered.

We compensate it with negative margin to keep
right distance
@andrey-medvedev-vk andrey-medvedev-vk self-assigned this Sep 24, 2024
@andrey-medvedev-vk andrey-medvedev-vk added this to the v6.8.0 milestone Sep 24, 2024
@andrey-medvedev-vk andrey-medvedev-vk added v6 Автоматизация: PR продублируется в ветку v6 patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча labels Sep 24, 2024
Copy link
Contributor

github-actions bot commented Sep 24, 2024

size-limit report 📦

Path Size
JS 385.03 KB (0%)
JS (gzip) 116.46 KB (0%)
JS (brotli) 95.6 KB (0%)
JS import Div (tree shaking) 1.45 KB (0%)
CSS 330.31 KB (+0.08% 🔺)
CSS (gzip) 41.33 KB (+0.12% 🔺)
CSS (brotli) 32.75 KB (+0.07% 🔺)

Copy link

codesandbox-ci bot commented Sep 24, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
Contributor

github-actions bot commented Sep 24, 2024

e2e tests

Playwright Report

Copy link
Contributor

github-actions bot commented Sep 24, 2024

👀 Docs deployed

Commit 4eadae4

Copy link

codecov bot commented Sep 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.18%. Comparing base (be12be7) to head (4eadae4).
Report is 10 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7658   +/-   ##
=======================================
  Coverage   95.18%   95.18%           
=======================================
  Files         383      383           
  Lines       11347    11347           
  Branches     3726     3726           
=======================================
  Hits        10801    10801           
  Misses        546      546           
Flag Coverage Δ
unittests 95.18% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andrey-medvedev-vk andrey-medvedev-vk marked this pull request as ready for review September 25, 2024 07:09
@andrey-medvedev-vk andrey-medvedev-vk requested a review from a team as a code owner September 25, 2024 07:09
@andrey-medvedev-vk andrey-medvedev-vk requested a review from a team September 25, 2024 07:09
Copy link
Contributor

@EldarMuhamethanov EldarMuhamethanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@andrey-medvedev-vk andrey-medvedev-vk merged commit c96f0b6 into master Sep 25, 2024
28 checks passed
@andrey-medvedev-vk andrey-medvedev-vk deleted the mendrew/fix/CellButton/center-mode-with-icon-in-before branch September 25, 2024 15:17
vkcom-publisher pushed a commit that referenced this pull request Sep 25, 2024
исправлен слишком большой отступ между иконкой в before и текстом в режиме centered.
vkcom-publisher pushed a commit that referenced this pull request Sep 25, 2024
исправлен слишком большой отступ между иконкой в before и текстом в режиме centered.
@vkcom-publisher
Copy link
Contributor

v6.7.2 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmp:cell-button patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча type:bug v6 Автоматизация: PR продублируется в ветку v6
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants